gtkwindow: Clean up the code for an optimization
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 15 Jul 2014 18:42:36 +0000 (14:42 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 15 Jul 2014 18:49:16 +0000 (14:49 -0400)
commit2e4018c3867f089f305d3b4f19d9f60486cb9ebb
tree84996d06c233ba6f108fefb4033374842a339619
parentb7a8bde89581fa1d9aa800828c1347fdb4507aa7
gtkwindow: Clean up the code for an optimization

It's hard to figure out what the "expected_reply" means except under
close examination -- it's actually talking about whether this was a
reply to a ConfigureRequest or not. The inversion in the check doesn't
help either.

Make the code cleaner by moving it above the freeze/thaw case, and
making the check more explicit and without a confusing variable. If we
haven't sent any ConfigureRequests out, then it must be a gratuitous
ConfigureNotify.
gtk/gtkwindow.c